# core/models.py

from dataclasses import dataclass
from typing import List, Optional

@dataclass
class User:
    user_id: str
    nickname: str = "未知"
    gender: str = "未知"
    location: str = "未知"
    description: str = "未知"
    verified_reason: str = "未知"
    weibo_count: int = 0
    following_count: int = 0
    follower_count: int = 0

@dataclass
class Weibo:
    id: str
    content: str
    publish_time: str  # ISO8601 格式
    device: str = ""
    repost_count: int = 0
    comment_count: int = 0
    like_count: int = 0
    images: List[str] = None
